package com.heima.wemedia.util;

import com.heima.model.wemedia.entity.WmUser;

public class WmThreadLocalUtil {

    private static  final  ThreadLocal<WmUser> WM_USER_THREAD_LOCAL=new ThreadLocal();

    public static void set(WmUser user){
        WM_USER_THREAD_LOCAL.set(user);
    }

    public static WmUser get(){
        return WM_USER_THREAD_LOCAL.get();
    }


    public static void remove(){
         WM_USER_THREAD_LOCAL.remove();
    }

}
